package main.guis;

import java.util.HashMap;

import main.bots.Methods;
import main.bots.ScriptManager;
import main.client;

public class GUIHelper {
	
	public static HashMap<String, GUI> guiList = new HashMap<String, GUI>();
	
	public static client getClient() {
		return Methods.getClientToUse();
	}

	public static void setUp() {
		ScriptManager.setBots();
		guiList = new HashMap<String, GUI>(100);
		guiList.put("server", new LoginInfo());
		guiList.put("startscript", new ScriptStart());
		guiList.put("proxyswitcher", new ProxySwitcher());
	}
	public static void showGUI(String guiName) {
	GUI gui = guiList.get(guiName);
	if(gui == null) {
		System.out.println("Sorry but " + guiName + "  does not exist!");
		return;
	}
	gui.showGUI();
		
	}

}
